package com.leetcode.algorithm.y19.m03;

public class GuessGame {
	private int pick;

	public GuessGame(int pick) {
		super();
		this.pick = pick;
	}

	public int guess(int num) {
		if (num == pick) {
			return 0;
		} else if (pick < num) {
			return -1;
		} else {
			return 1;
		}
	}

	public int getPick() {
		return pick;
	}

}
